package com.myway.dao;


import com.myway.dto.vo.FlySegmentVo;
import com.myway.pojo.FlySegment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlySegmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FlySegment record);

    int insertSelective(FlySegment record);

    FlySegment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FlySegment record);

    int updateByPrimaryKey(FlySegment record);

    List<FlySegment> getFlySegmentListByOrderId(@Param("orderId") Long orderId);

    /**
     * rdh
     * 根据订单id查询航段信息
     */
    List<FlySegmentVo> getFlySegmentByOrderId(@Param("orderId")String orderId);
    List<FlySegmentVo> getFlySegmentVoByOrderId(@Param("orderId")Long orderId);
    FlySegmentVo selectVoByPrimaryKey(Long id);

}